<script setup lang="ts">
import { ref } from "vue";
interface pageType {
  current?: number;
  pageSize?: number;
  sortField?: string;
  sortOrder?: string;
}

const initPageParam = {
  current: 1,
  pageSize: 5,
};

const pageTotal = ref(0);

// todo 待定
const getPageData = () => {};

const pageParam = ref<pageType>({ ...initPageParam });
</script>
<template>
  <div class="page-view">
    <el-pagination
      v-model:current-page="pageParam.current"
      layout="prev, pager, next"
      :page-count="+pageTotal"
      @current-change="getPageData"
    />
  </div>
</template>
<style lang="scss" scoped></style>
